package com.liholin.springboot.sample.exception

enum class ErrorStatus(val value: Long,var errorMessageZh: String,private val errorMessageEn: String) {
    OPERATION_FAILED(400000, "操作失败", "OPERATION_FAILED"),
    PARAMETER_VALID_ERROR(400001, "参数验证失败", "PARAMETER_VALID_ERROR"),
    NO_FOUND_RECORD_ERROR(400002, "未找到相关记录", "NO_FOUND_RECORD_ERROR"),
    EXIST_RECORD_ERROR(400003, "相关记录已经存在", "EXIST_RECORD_ERROR"),
    USER_UNAUTHORIZED(400004, "用户未授权", "USER_UNAUTHORIZED"),
    PHONE_EXITS(400005, "手机号已存在", "PHONE_EXITS"),
    ERROR_VER_CODE(400006, "错误的验证码", "ERROR_VER_CODE"),
    PHONE_NOT_EXITS(400007, "手机号不存在", "PHONE_NOT_EXITS"),
    PASSWORD_ERROR(400008, "密码不正确", "PASSWORD_ERROR"),
    FILE_SIZE_ERROR(400009, "文件大小受限", "FILE_SIZE_ERROR"),
    FILE_FORMAT_ERROR(400010, "文件格式受限", "FILE_FORMAT_ERROR"),
    ERROR_500(500, "", "ERROR_500"),
    ERROR_400011(400011, "", "ERROR_400011");
}


//PARAMETER_VALID_ERROR(400001, "参数验证失败", "PARAMETER_VALID_ERROR"),
//NO_FOUND_RECORD_ERROR(400002, "未找到相关记录", "NO_FOUND_RECORD_ERROR"),
//EXIST_RECORD_ERROR(400003, "相关记录已经存在", "EXIST_RECORD_ERROR"),
//USER_UNAUTHORIZED(400004, "用户未授权", "USER_UNAUTHORIZED"),
//PHONE_EXITS(400005, "手机号已存在", "PHONE_EXITS"),
//ERROR_VER_CODE(400006, "错误的验证码", "ERROR_VER_CODE"),
//PHONE_NOT_EXITS(400007, "手机号不存在", "PHONE_NOT_EXITS");
//
//private final int value;
//private final String errorMessageZh;
//private final String errorMessageEn;
//
//private ErrorStatus(int value, String series, String reasonPhrase) {
//    this.value = value;
//    this.errorMessageZh = series;
//    this.errorMessageEn = reasonPhrase;
//}